]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Fix recursive directory NoDisplay testing
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 19 Jun 2012 17:02:38 +0000 (13:02 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 21 Jun 2012 20:03:48 +0000 (16:03 -0400)
We were accidentally testing NoDisplay on the wrong directory.

https://bugzilla.gnome.org/show_bug.cgi?id=658176

js/ui/appDisplay.js

index ad7b70dbb859dce30ccceec23ad342f14361a9d0..b0ff291baf1c3539a07b4e339d8163518f07c2e0 100644 (file)
@@ -208,8 +208,9 @@ const ViewByCategories = new Lang.Class({
                     appList.push(app);
                 }
             } else if (nextType == GMenu.TreeItemType.DIRECTORY) {
-                if (!dir.get_is_nodisplay())
-                    this._loadCategory(iter.get_directory(), appList);
+                var itemDir = iter.get_directory();
+                if (!itemDir.get_is_nodisplay())
+                    this._loadCategory(itemDir, appList);
             }
         }
     },